<template>
	<view class="card-item">
		<view class="address-box">
			<view class="icon-box">
				<image class="icon" src="/static/image/user/receive_icon.png" mode="aspectFit"></image>
			</view>
			<view class="address-info">
				<view class="name">
					沙克
				</view>
				<view class="phone">
					123456789231
				</view>
			</view>
			<view class="edit-box">
				<view class="edit-icon-box">
					<image class="icon" src="/static/image/user/edit_icon.png" mode="aspectFit"></image>
				</view>
				<view class="text">
					编辑 
				</view>
			</view>
		</view>
		<view class="card-bottom-box">
			<view class="address">
				<view class="title">
					发货地址：
				</view>
				<view class="value">
					北京市，东城区东城区001
				</view>
			</view>
			<view class="ctrl-box">
				<view class="radio-box">
					<image class="radio-icon" src="/static/image/radio_selected_icon.png" mode="aspectFit"></image>
					<view class="radio-value">
						默认地址
					</view>
				</view>
				<view class="delete-box">
					删除
				</view>
			</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
	.card-item{
		background-color: white;
		width: 100%;
		box-sizing: border-box;
		padding:0 20rpx;
		overflow: hidden;
		margin-bottom: 20rpx;
		.address-box{
			display: flex;
			margin-top: 20rpx;
			position: relative;
		.icon-box{
			background-color: #8ac6de;
			width: 90rpx;
			height: 90rpx;
			display: flex;
			border-radius: 100%;
			align-items: center;
			justify-content: center;
			.icon{
				width:70%;
				height:70%;
			}
		}
		.address-info{
			margin-left: 20rpx;
			font-size: 28rpx;
			line-height: 40rpx;
			margin-top:5rpx;
			.phone{
				color:#a4a4a4;
			} 
		  }
		  .edit-box{
			  display: flex;
			  position: absolute;
			  right:0;
			  top:20rpx;
			  color:#c5c5c5;
			  font-size:28rpx;
			  line-height:40rpx;
			  .edit-icon-box{
				  width: 40rpx;
				  height: 40rpx;
				  .icon{
					  width: 100%;
					  height: 100%;
				  }
			  }
			  .text{
				  margin-left: 10rpx; 
			  }
		  }
		}
		.address{
			margin-top: 40rpx;
			display: flex;
			font-size: 28rpx;
			.title{
				color: #a9a9a9;
			}
			.value{
				
			}
		}
		.ctrl-box{
			width: 100%;
			position: relative;
			font-size: 28rpx;
			line-height: 50rpx;
			box-sizing: border-box;
			padding: 20rpx 0;
			margin-top: 20rpx;
			border-top: 1px solid #f7f7f7;
			.radio-box{
				display: flex;
				.radio-icon{
					width:50rpx;
					height:50rpx;
				}
				.radio-value{
					margin-left:10rpx;
				}
			}
			.delete-box{
				position: absolute;
				right:0;
				top:20rpx;
				line-height: 50rpx;
				color:#cd1618;
			}
		}
	}
</style>
